<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2020/3/19
  Time: 8:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="<%=basePath%>/bootstrap/css/bootstrap.min.css" >
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="<%=basePath%>/bootstrap/css/bootstrap-theme.min.css" >

    <title>$Title$</title>
</head>
<body>
<div class="row"><h1 style="margin-left: 200px">学生管理系统</h1></div>
<div class="row" style="font-size:8px">

    <form class="form-horizontal" method="post" action="<%=basePath%>/Login.do">
        <div class="form-group">
            <label for="username" class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="username" placeholder="username" name="name">
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" id="password" placeholder="password" name="password">
            </div>
        </div>
        <div class="form-group">
            <label for="type" class="col-sm-2 control-label">身份</label>
            <div class="col-sm-10">
                <select class="form-control" id="type" name="type">
                    <option value="0">学生</option>
                    <option value="1">教师</option>
                    <option value="2">管理员</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">login</button>
            </div>
        </div>
    </form>
</div>
<!-- 最新的 Bootstrap 核心 jquery 文件 -->
<script src="<%=basePath%>/bootstrap/js/jquery.min.js" ></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="<%=basePath%>/bootstrap/js/bootstrap.min.js" ></script>
</body>
</html>
